Do not assign the parent class twice
authorXan Lopez <xan@gnome.org>
Thu, 15 Oct 2009 06:43:08 +0000 (09:43 +0300)
committerPaolo Borelli <pborelli@gnome.org>
Thu, 15 Oct 2009 13:28:54 +0000 (15:28 +0200)
G_DEFINE_TYPE already does this for us, no need to do it again in
class_init

https://bugzilla.gnome.org/show_bug.cgi?id=598515

gtk/gtkspinner.c

index e4566fbda8429a27bb0bcd9699b17bac8b34e017..036d0b18123fe7b14baf8ec34077e95cf86377aa 100644 (file)
@@ -102,8 +102,6 @@ gtk_spinner_class_init (GtkSpinnerClass *klass)
   GObjectClass *gobject_class;
   GtkWidgetClass *widget_class;
 
-  gtk_spinner_parent_class = g_type_class_peek_parent (klass);
-
   gobject_class = G_OBJECT_CLASS(klass);
   g_type_class_add_private (gobject_class, sizeof (GtkSpinnerPrivate));
   gobject_class->dispose = gtk_spinner_dispose;